#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <fcntl.h>
#include <sys/stat.h>

#define FIFO_PATH	"/tmp/mytube"

int main(){
	int pid;
	char buf[32]={0};
	int fd;

	if(access(FIFO_PATH,F_OK)<0){
		puts("No SuchFile");
		fd = mkfifo(FIFO_PATH,O_RDONLY);
	}

	while(1){
		if(read(fd,buf,10)>0)
			puts(buf);
	}



	return 0;
}

